extends Sprite2D

@onready var tween := get_tree().create_tween()
@onready var player01: Sprite2D = get_node("/root/Node2D/Player01")

func _ready():
	tween.bind_node(self)
	tween.set_parallel(true).set_trans(Tween.TRANS_QUINT).set_ease(Tween.EASE_IN_OUT)
	tween.tween_property(self, "position", player01.position + Vector2(800, 50), 2.0).set_delay(1.0)
	tween.tween_property(self, "scale", Vector2(2, 2), 1.0).set_delay(1.0).set_trans(Tween.TRANS_LINEAR)
	tween.tween_property(self, "scale", Vector2(4, 4), 1.0).set_delay(2.0).set_trans(Tween.TRANS_LINEAR).from(Vector2(2, 2))
	tween.chain().tween_property(self, "rotation", PI * 0.5, 1.0)
